import argparse

def usege():
    parser = argparse.ArgumentParser (prog = 'PROG')
    parser.add_argument ('--host', help = "Service ip address")
    parser.add_argument ('--port', type = int, help = "Service port number")
    parser.add_argument ('--name', help = "The name of the service")
    parser.add_argument ('--consul', help = "Consul register server address")
    args = parser.parse_args ()
    return args

args = usege()

host = args.host
port = args.port
name = args.name
consul = args.consul

print(host,port,name,consul)

